package com.xiaojun.whut.Repository;

import com.xiaojun.whut.Entity.SysLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 鲁佳磊
 * @create 2020-11-05 0:05
 */
@Repository
public interface SysLogRepository extends JpaRepository<SysLog,String> {
    @Query(value = "select * from sys_log order by create_date desc " ,nativeQuery = true)
    List<SysLog> getAllInfo();
}
